{extend name="base/base"}
{block name="content"}
    <div class="detail-body">
        <div class="title">{$data['title']}</div>
        <p class="bar">
            <span>{$data['create_date']}</span>
            <span class="yd">阅读数：{$data['read_num']}</span>
        </p>
        <div class="content">
            {:$data['content_html']}
        </div>
        <div class="tags">
            {:$data['tags']}
        </div>
        <div class="href">
            {if isset($data['last'])}
            <p>
                上一篇：
                <a href="{$data['last']['url']}">{$data['last']['title']}</a>
            </p>
            {/if}
            {if isset($data['next'])}
            <p>
                下一篇：
                <a href="{$data['next']['url']}">{$data['next']['title']}</a>
            </p>
            {/if}
        </div>
    </div>
{/block}

{block name="js"}
    <script>
        layui.use(['laypage','jquery','layer'], function(){
        });
    </script>
{/block}